package yogiro.to;

public class RecommendTO {
	private int recommendNo;
	private String recommendId;
	private int recommendTourNo;
	public RecommendTO(int recommendNo, String recommendId, int recommendTourNo) {
		super();
		this.recommendNo = recommendNo;
		this.recommendId = recommendId;
		this.recommendTourNo = recommendTourNo;
	}
	
	public RecommendTO(String recommendId, int recommendTourNo) {
		super();
		this.recommendId = recommendId;
		this.recommendTourNo = recommendTourNo;
	}

	public RecommendTO() {
		super();
	}
	public int getRecommendNo() {
		return recommendNo;
	}
	public void setRecommendNo(int recommendNo) {
		this.recommendNo = recommendNo;
	}
	public String getRecommendId() {
		return recommendId;
	}
	public void setRecommendId(String recommendId) {
		this.recommendId = recommendId;
	}
	public int getRecommendTourNo() {
		return recommendTourNo;
	}
	public void setRecommendTourNo(int recommendTourNo) {
		this.recommendTourNo = recommendTourNo;
	}
	@Override
	public String toString() {
		return "RecommendTO [recommendNo=" + recommendNo + ", recommendId="
				+ recommendId + ", recommendTourNo=" + recommendTourNo + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((recommendId == null) ? 0 : recommendId.hashCode());
		result = prime * result + recommendNo;
		result = prime * result + recommendTourNo;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RecommendTO other = (RecommendTO) obj;
		if (recommendId == null) {
			if (other.recommendId != null)
				return false;
		} else if (!recommendId.equals(other.recommendId))
			return false;
		if (recommendNo != other.recommendNo)
			return false;
		if (recommendTourNo != other.recommendTourNo)
			return false;
		return true;
	}
	
	
}
